import sys
import logging
sys.path.append("tweepy/".encode("utf-8"))
import tweepy

modStrConKey = "m8gDPJLNhJevZusJQ7pxA"
modStrConSec = "3CNxg3fi7GLFqAnKG9kMXBtwi8o4L7m4gEdcvA5Iw"
modStrAccKey = "28868957-BB6Cn48MwWlqkIMBIWPe97XQZ7SzBjPuCUWxmK24"
modStrAccSec = "96KjPEdIXiCtwS2SOr7U7UOQt3Slk2d5ZIdYxxdvRE"

modAuth = tweepy.OAuthHandler(modStrConKey, modStrConSec)
modAuth.set_access_token(modStrAccKey, modStrAccSec)
modTwitterApi = tweepy.API(modAuth)

def CollectTweets(strHashTag, intItems):
  lstValidTweets = []
  logging.info("Bananas!")
  logging.info(modTwitterApi.get_user("mickglees").name)
  timeline = modTwitterApi.user_timeline(screen_name="mickglees", include_rts=True, count=100)
  for tweet in timeline:
    if("#ICTSkills2013"  in tweet.text):
      logging.info(tweet.text)
      lstValidTweets.append(tweet.text)

  return lstValidTweets



